package com.jiayou.system.handler;


import com.jiayou.config.vertx.handler.AnnotationBaseHandler
import com.jiayou.config.vertx.web.Get
import com.jiayou.config.vertx.web.Post
import com.jiayou.config.vertx.web.RequestMapping
import com.jiayou.system.entity.SysUser
import com.jiayou.system.service.impl.SysUserServiceImpl
import io.vertx.ext.web.RoutingContext
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author lishuang
 * @since 2021-07-19
 */

@Component
@RequestMapping("/system")
class SysUserHandler : AnnotationBaseHandler() {

    @Autowired
    private lateinit var sysUserServiceImpl: SysUserServiceImpl

    @Post("sys-user")
    fun getList(routerContext: RoutingContext): List<SysUser> {
        return sysUserServiceImpl.list()
    }

    @Get("sys-test")
    fun good(routerContext: RoutingContext) {

    }

}